﻿using System.Web.Mvc;
using Inovout.Services;
using Inovout.Web.Mvc;
using Inovout.YunYao.Models;

namespace Inovout.YunYao.Solutions.Web.Controllers
{
    [AllowAnonymous]
    public class EquipmentController : MonitoringElementController<Equipment>
    {
        public override ActionResult List()
        {
            return base.View(base.Solution.Equipments);
        }
        public override ActionResult Create(int? id)
        {
            IRepositoryService<RoomLocation> roomLocationService = ComponentRegistry.Resolve<IRepositoryService<RoomLocation>>();
            ViewBag.Locations = roomLocationService.FindAll();
            
            return base.Create(id);
        }
    }
}
